package cn.stylefeng.guns.modular.business.frequency.orderfinish.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 订单完成确认表
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderFinishParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Long id;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 签收人
     */
    private Long createUser;

    /**
     * update_time
     */
    private String updateTime;

    /**
     * update_user
     */
    private Long updateUser;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空",groups = {add.class,edit.class})
    private Long orderId;

    /**
     * 备注
     */
    @NotNull(message = "备注不能为空",groups = {add.class,edit.class})
    private String remark;

    /**
     * 交付图片
     */
    @NotNull(message = "交付图片不能为空",groups = {add.class,edit.class})
    private String images;

    /**
     * 应收
     */
    @NotNull(message = "应收不能为空",groups = {add.class,edit.class})
    private BigDecimal collectionFee;

    /**
     * 应付
     */
    @NotNull(message = "应付不能为空",groups = {add.class,edit.class})
    private BigDecimal paymentFee;

    /**
     * 毛利
     */
    @NotNull(message = "毛利不能为空",groups = {add.class,edit.class})
    private BigDecimal grossFee;

    /**
     * 交付人
     */
    @NotNull(message = "交付人不能为空",groups = {add.class,edit.class})
    private String consigneeName;

    /**
     * 交付人电话
     */
    @NotNull(message = "交付人电话不能为空",groups = {add.class,edit.class})
    private String consigneePhone;

    /**
     * 交付人身份证号码
     */
    @NotNull(message = "交付人身份证号码不能为空",groups = {add.class,edit.class})
    private String consigneeCardNumber;

    /**
     * 交付收款方式 1.线上收钱吧 2.银行转账 3.现金
     */
    @NotNull(message = "交付收款方式 1.线上收钱吧 2.银行转账 3.现金不能为空",groups = {add.class,edit.class})
    private Integer type;

    /**
     * 现金支付金额
     */
    @NotNull(message = "现金支付金额不能为空",groups = {add.class,edit.class})
    private BigDecimal cashFee;

}
